let endPoints = "wss://mainnet.infura.io/ws/v3/fc64f828e2054f30b145122e34dff479";
let mortgagePoolAddress = "0xd8E5EfE8DDbe78C8B08bdd70A6dc668F54a6C01c";
let nestQueryAddress = '0xB5D2890c061c321A5B6A4a4254bb1522425BAF0A';//NEST 价格查询合约
//代币地址
let ethToken = '0x0000000000000000000000000000000000000000';
let nestToken = '0x04abEdA201850aC0124161F037Efd70c74ddC74C';//NEST Token
let usdtToken = '0xdac17f958d2ee523a2206206994597c13d831ec7';//USDT Token
let pusdtToken = '0xCCEcC702Ec67309Bc3DDAF6a42E9e5a6b8Da58f0';//PUSDT Token
let pethToken = '0x53f878Fb7Ec7B86e4F9a0CB1E9a6c89C0555FbbD';//PETH Token
let privateKey = process.env.privateKey;


if (process.env.DEBUG) {
  // endPoints = "wss://ropsten.infura.io/ws/v3/fc64f828e2054f30b145122e34dff479";
  endPoints = "https://rinkeby.infura.io/v3/fc64f828e2054f30b145122e34dff479";
  mortgagePoolAddress = "0x509F84D973B2C75fD62a8454d80575fF89FDe3d4";
  nestQueryAddress = '0x11Cf802193Ae6167622b0c68007882A0D90B7642';//NEST 价格合约
  ethToken = '0x0000000000000000000000000000000000000000';
  nestToken = '0x52805f9C36E7F9eC6390DCB51f7fB8Cc1575A85e';//NEST Token
  usdtToken = '0xC4FC237b2BB407d14ce925F70063Ef7312A336B6';//USDT Token
  pusdtToken = '0xBf1710D43C3BdC50195c15019F48DC5c1f065806';//PUSDT Token
  pethToken = '0x039D3f87F90Ec6F1fc73467c396093418ece53aC';//PETH Token
}

module.exports = {
  endPoints,
  privateKey,
  mortgagePoolAddress,
  ethToken,
  nestToken,
  usdtToken,
  pusdtToken,
  pethToken,
  nestQueryAddress,
}
